hackerrank trees is this a binary search tree solution

welcome to shbcf.ru